﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPMN.Application.Contracts.DTO.Request.RepairOrders
{
    /// <summary>
    /// 维修信息表
    /// </summary>
    public class RepairOrdersRequestDto
    {
        public int Rid { get; set; }  //维修单Id

        public string? RName { get; set; }   //维修单名称

        public string? Rnum { get; set; }  //维修单编号

        public DateTime AddTime { get; set; } = DateTime.Now;  //添加时间

        [NotMapped]
        public string TimeFormat
        {
            get
            {
                return AddTime.ToString("yyyy-MM-dd");
            }
        }

        public string? Rremark { get; set; }  //备注

        /// <summary>
        /// 创建人Id
        /// </summary>
        public int? CreatorId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改人Id
        /// </summary>
        public int? Updator { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 逻辑删除列 false:表示未删除
        /// </summary>
        public bool IsDel { get; set; } = true;

        public int Eid { get; set; }

        public string? EName { get; set; }  //设备名称

        public string? Enum { get; set; }  //设备编号

        public string? EType { get; set; }  //设备类型

        public string? Ecare { get; set; }  //维修车间

   
        public int Bid { get; set; }

        public string? BName { get; set; }  //品牌名称

        public string? Bremark { get; set; }  //备注
    }

}
